public class InGameTutorialGetMoney : InGameTutorialObject
{
	public MapDistrict district;

	public bool inited;

	private new string name;

	public override bool OnStepStart(string name)
	{
		this.name = name;
		for (int i = 0; i < values.Length; i++)
		{
			if (name == values[i].value)
			{
				if (base.gameObject.GetActive())
				{
					return base.OnStepStart(name);
				}
				inited = true;
				if (values[i].started && values[i].used)
				{
					Use();
					return true;
				}
			}
		}
		return false;
	}

	private void Update()
	{
		if (inited)
		{
			base.OnStepStart(name);
			inited = false;
		}
		for (int i = 0; i < values.Length; i++)
		{
			if (values[i].started && values[i].used)
			{
				Use();
			}
		}
	}

	public void OnClick()
	{
		for (int i = 0; i < values.Length; i++)
		{
			values[i].used = true;
			if (values[i].started)
			{
				Use();
			}
		}
	}
}
